package com.example.demo.dto;

import java.io.Serializable;

public class ResultDTO implements Serializable {
    private String result;
    private String code;
    private Object data;
    private String message;

    @Override
    public String toString() {
        return "ResultDTO{" +
                "result='" + result + '\'' +
                ", code='" + code + '\'' +
                ", data=" + data +
                ", message='" + message + '\'' +
                '}';
    }

    public ResultDTO(String result, String code, String message, Object data) {
        this.result = result;
        this.code = code;
        this.data = data;
        this.message=message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
